import EhRequest from "@/service";

enum DashboardAPI{
  categoryGoodsCount='/goods/category/count',
  categoryGoodsSale='/goods/category/sale',
  categoryGoodsFavor='/goods/category/favor',
  addressGoodsSale='/goods/address/sale'
}

export function getCategoryGoodsCount(){
  return EhRequest.get({
    url:DashboardAPI.categoryGoodsCount,
  })
}

export function getCategoryGoodsSale(){
  return EhRequest.get({
    url:DashboardAPI.categoryGoodsSale,
  })
}

export function getCategoryGoodsFavor(){
  return EhRequest.get({
    url:DashboardAPI.categoryGoodsFavor,
  })
}

export function getAddressGoodsSale(){
  return EhRequest.get({
    url:DashboardAPI.addressGoodsSale,
  })
}